import request from '@/utils/request'

// 创建物品登记
export function createXTbGenGoodsRegister(data) {
  return request({
    url: '/xiaoBizHandler/XT-b-gen-goods-register/create',
    method: 'post',
    data: data
  })
}

// 更新物品登记
export function updateXTbGenGoodsRegister(data) {
  return request({
    url: '/xiaoBizHandler/XT-b-gen-goods-register/update',
    method: 'put',
    data: data
  })
}

// 删除物品登记
export function deleteXTbGenGoodsRegister(id) {
  return request({
    url: '/xiaoBizHandler/XT-b-gen-goods-register/delete?id=' + id,
    method: 'delete'
  })
}

// 获得物品登记
export function getXTbGenGoodsRegister(id) {
  return request({
    url: '/xiaoBizHandler/XT-b-gen-goods-register/get?id=' + id,
    method: 'get'
  })
}

// 获得物品登记分页
export function getXTbGenGoodsRegisterPage(query) {
  return request({
    url: '/xiaoBizHandler/XT-b-gen-goods-register/page',
    method: 'get',
    params: query
  })
}

// 导出物品登记 Excel
export function exportXTbGenGoodsRegisterExcel(query) {
  return request({
    url: '/xiaoBizHandler/XT-b-gen-goods-register/export-excel',
    method: 'get',
    params: query,
    responseType: 'blob'
  })
}

